<table border="1">
    <tr>
        <th>
            Username
        </th>
        <th>
            Password
        </th>
        <th>
            nama
        </th>
        <th>
            e-mail
        </th>
        <th>
            alamat
        </th>
        <th>
            no. telp
        </th>
        <th>
            foto
        </th>
        <th>
            rate instruktur
        </th>
        <th>
            rate asisten
        </th>
        <th>
            aksi
        </th>
    </tr>
<?php
    //print_r($data);
    for ($i=0;$i<count($data);$i++)
    {
        echo "<tr>";
        echo "<td>". $data[$i]['USERNAME'] ."</td>";
        echo "<td>". $data[$i]['PASSWORD'] ."</td>";
        echo "<td>". $data[$i]['NAMA'] ."</td>";
        echo "<td>". $data[$i]['EMAIL'] ."</td>";
        echo "<td>". $data[$i]['ALAMAT'] ."</td>";
        echo "<td>". $data[$i]['NO_TELP'] ."</td>";
        echo "<td><img width='100' src='". $data[$i]['FOTO'] ."'></img></td>";
        echo "<td>". $data[$i]['RATE_INS'] ."</td>";
        echo "<td>". $data[$i]['RATE_ASS'] ."</td>";
        echo "<td><a href='". base_url() ."admin/pengajar_con/edit_pengajar_foto/". $data[$i]['ID'] ."'>edit foto</a>|
            <a href='". base_url() ."admin/pengajar_con/edit_pengajar/". $data[$i]['ID'] ."'>edit</a>|
                <a href='". base_url() ."admin/pengajar_con/hapus_pengajar/". $data[$i]['ID'] ."'>delete</a>|
                    <a href='". base_url() ."admin/pengajar_con/profil_pengajar/". $data[$i]['ID'] ."'>profil pengajar</a></td>";
        echo "</tr>";
    }

?>
</table><br />
<a href="<?php echo base_url() ?>admin/pengajar_con/tambah_pengajar">tambah</a>
